<?php if (!defined('THINK_PATH')) exit();?><!--
 * Created by JetBrains PhpStorm.
 * User: Xnfy520@gmail.com
 * Date: 12-3-12
 * Time: 下午5:20
 -->
<!DOCTYPE html>
<html>
<head>
    <title></title>
    <link href="../Public/css/index.css" rel="stylesheet" type="text/css" />
        <link href="../Public/css/<?php echo (strtolower(MODULE_NAME)); ?>.css" rel="stylesheet" type="text/css" class="changecss" />
    <script src="__PUBLIC__/js/jquery-1.7.1.min.js"></script>
    <script src="../Public/js/index.js"></script>
</head>
<body>
<div id="header">
   <a href="__ROOT__/index.php">前台首页</a>
    欢迎登录<?php echo ($_SESSION['username']); ?>  <a href="__APP__/Public/loginout">退出</a>
</div>
<div id="body">
<div id="left">
    <div id="left-content">
        <ul>
            <li class="manage">
                <a href="javascript:;" class="manage-a">系统管理</a>
                <ul id="system">
                    <li><a href="__APP__/Index/index">系统信息</a></li>
                    <li><a href="__APP__/Index/systeminfo">系统设置</a></li>
                </ul>
            </li>
            <li class="manage">
                <a href="javascript:;" class="manage-a">用户管理</a>
                <ul id="user">
                    <li><a href="__APP__/User/index">用户信息</a></li>
                    <li><a href="__APP__/Role/index">分组授权</a></li>
                </ul>
            </li>

            <li class="manage">
                <a href="javascript:;" class="manage-a">权限分配</a>
                <ul>
                    <li><a href="__APP__/Node/index">节点列表</a></li>
                    <?php if(is_array($apps)): $i = 0; $__LIST__ = $apps;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><a href="__APP__/Node/modelindex/pid/<?php echo ($vo['id']); ?>"><?php echo ($vo['remark']); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </li>

            <li class="manage">
                <a href="javascript:;" class="manage-a">菜单管理</a>
                <ul>
                    <li><a href="__APP__/Menu/index">菜单列表</a></li>
                    <?php if(is_array($menus)): $i = 0; $__LIST__ = $menus;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><a href="__APP__/MenuItem/index/mid/<?php echo ($vo['id']); ?>"><?php echo ($vo['name']); ?></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
                </ul>
            </li>


            <li class="manage">
                <a href="javascript:;" class="manage-a">内容管理</a>
                <ul>
                    <li><a href="__APP__/Section/index">单元分类</a></li>
                    <li><a href="__APP__/Article/addall">添加文章</a></li>
                </ul>
            </li>

            <li class="manage">
                <a href="javascript:;" class="manage-a">组件管理</a>
                <ul>
                    <li><a href="__APP__/Component/index">组件信息</a></li>
                </ul>
            </li>

        </ul>
    </div>
</div>


<div id="content">

</div>

<div id="right-bottom">
<p>这是内容脚部</p>
</div>
</div>

<div id="footer">
    这里脚部
    <?php echo (ACTION_NAME); ?>
</div>
<script type="text/javascript">
    var URL = "__URL__";
    var APP = "__APP__";
    var ROOT = "__ROOT__";
    var ACTION = "__ACTION__";

    var CSS = "../Public/css";
    var JS = '../Public/js';
    var SELF = '__SELF__';

    var module_name = "<?php echo (MODULE_NAME); ?>";
    var action_name = "<?php echo (ACTION_NAME); ?>";

</script>